package com.prawn.ift.ctrlequipment.pojo;

import org.hibernate.annotations.DynamicInsert;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="ift_scene")
@DynamicInsert
public class Scene implements Serializable{

	@Id
	private String id;//编号


	
	private String name;//名称
	private String typeId;//场景类型ID
	private String address;//所在地详细
	private String areaId;//行政区域
	private String imgUrl;//场景图片
	private String vedioUrl;//视频路径
	private String longitude;//经度
	private String latitude;//纬度
	private Integer sort;// 排序号
	private String parentId;//预留字段
	private String createBy;//创建者
	private java.util.Date createDate;//创建时间
	private String updateBy;//更新者
	private java.util.Date updateDate;//更新时间
	private String delFlag;//删除标记
	private String parentIds;//预留字段
	private String areaIds;//预留字段，多级区域ID用逗号隔开
	private String remarks;//备注信息
	@Transient
	private List<Scene> children;
	//@Transient
	public List<Scene> getChildren() {
		return children;
	}

	public void setChildren(List<Scene> children) {
		this.children = children;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getName() {		
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getTypeId() {		
		return typeId;
	}
	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public String getAddress() {		
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}

	public String getAreaId() {		
		return areaId;
	}
	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getImgUrl() {		
		return imgUrl;
	}
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getVedioUrl() {		
		return vedioUrl;
	}
	public void setVedioUrl(String vedioUrl) {
		this.vedioUrl = vedioUrl;
	}

	public String getLongitude() {		
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {		
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public Integer getSort() {		
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getParentId() {		
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getCreateBy() {		
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public java.util.Date getCreateDate() {		
		return createDate;
	}
	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {		
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public java.util.Date getUpdateDate() {		
		return updateDate;
	}
	public void setUpdateDate(java.util.Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getDelFlag() {		
		return delFlag;
	}
	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getParentIds() {		
		return parentIds;
	}
	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}

	public String getAreaIds() {		
		return areaIds;
	}
	public void setAreaIds(String areaIds) {
		this.areaIds = areaIds;
	}

	public String getRemarks() {		
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	public String toString() {
		return "Scene{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", typeId='" + typeId + '\'' +
				", address='" + address + '\'' +
				", areaId='" + areaId + '\'' +
				", imgUrl='" + imgUrl + '\'' +
				", vedioUrl='" + vedioUrl + '\'' +
				", longitude='" + longitude + '\'' +
				", latitude='" + latitude + '\'' +
				", sort=" + sort +
				", parentId='" + parentId + '\'' +
				", createBy='" + createBy + '\'' +
				", createDate=" + createDate +
				", updateBy='" + updateBy + '\'' +
				", updateDate=" + updateDate +
				", delFlag='" + delFlag + '\'' +
				", parentIds='" + parentIds + '\'' +
				", areaIds='" + areaIds + '\'' +
				", remarks='" + remarks + '\'' +
				", children=" + children +
				'}';
	}
}
